package city.spring.service.mealService;

import city.spring.domain.entity.mealService.FoodInfoEntity;
import city.spring.domain.entity.mealService.RecipesEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface RecipesService extends IService<RecipesEntity> {

    /**
     * 业务处理：保存一个食谱
     *
     * @param entity 食谱信息
     */
    void saveRecipes(RecipesEntity entity);

    /**
     * 业务处理：修改一个食谱信息
     *
     * @param entity 食谱信息
     */
    void updateRecipes(RecipesEntity entity);

    void updateRecipesMenu(String id, List<String> idList);

    /**
     * 业务处理：删除一个食谱信息
     *
     * @param primaryKey 主键ID
     */
    void deleteRecipes(String primaryKey);

    /**
     * 业务处理：删除多个食谱信息
     *
     * @param primaryKeys 主键ID列表
     */
    void deleteRecipes(List<String> primaryKeys);

    void loadFoodInfo(RecipesEntity entity);

    void loadFoodInfo(List<RecipesEntity> entities);

    void loadMealTime(RecipesEntity entity);

    void loadMealTime(List<RecipesEntity> entities);

    void loadDisease(RecipesEntity entity);

    void loadDisease(List<RecipesEntity> entities);

    Map<String, List<FoodInfoEntity>> loadTypeFoodInfo(RecipesEntity entity);

    void setRecipesDisease(RecipesEntity entity);

    void setRecipesMealTime(RecipesEntity entity);

    void updateRecipesMealTime(RecipesEntity entity);

}
